# Project: LIF7_Game
# Makefile created by Dev-C++ 4.9.9.2

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  = LIF7_Game_private.res
OBJ  = source/animated_sprite.o source/bounding_box.o source/char_noe.o source/character.o source/enemy.o source/entity.o source/game.o source/intro.o source/main.o source/menu.o source/sprite.o $(RES)
LINKOBJ  = source/animated_sprite.o source/bounding_box.o source/char_noe.o source/character.o source/enemy.o source/entity.o source/game.o source/intro.o source/main.o source/menu.o source/sprite.o $(RES)
LIBS =  -L"C:/Dev-Cpp/lib" -g -mwindows -lalleg 
INCS =  -I"C:/Dev-Cpp/include" 
CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
BIN  = LIF7_Game.exe
CXXFLAGS = $(CXXINCS)   -g
CFLAGS = $(INCS)   -g
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before LIF7_Game.exe all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o "LIF7_Game.exe" $(LIBS)

source/animated_sprite.o: source/animated_sprite.cpp
	$(CPP) -c source/animated_sprite.cpp -o source/animated_sprite.o $(CXXFLAGS)

source/bounding_box.o: source/bounding_box.cpp
	$(CPP) -c source/bounding_box.cpp -o source/bounding_box.o $(CXXFLAGS)

source/char_noe.o: source/char_noe.cpp
	$(CPP) -c source/char_noe.cpp -o source/char_noe.o $(CXXFLAGS)

source/character.o: source/character.cpp
	$(CPP) -c source/character.cpp -o source/character.o $(CXXFLAGS)

source/enemy.o: source/enemy.cpp
	$(CPP) -c source/enemy.cpp -o source/enemy.o $(CXXFLAGS)

source/entity.o: source/entity.cpp
	$(CPP) -c source/entity.cpp -o source/entity.o $(CXXFLAGS)

source/game.o: source/game.cpp
	$(CPP) -c source/game.cpp -o source/game.o $(CXXFLAGS)

source/intro.o: source/intro.cpp
	$(CPP) -c source/intro.cpp -o source/intro.o $(CXXFLAGS)

source/main.o: source/main.cpp
	$(CPP) -c source/main.cpp -o source/main.o $(CXXFLAGS)

source/menu.o: source/menu.cpp
	$(CPP) -c source/menu.cpp -o source/menu.o $(CXXFLAGS)

source/sprite.o: source/sprite.cpp
	$(CPP) -c source/sprite.cpp -o source/sprite.o $(CXXFLAGS)

LIF7_Game_private.res: LIF7_Game_private.rc 
	$(WINDRES) -i LIF7_Game_private.rc --input-format=rc -o LIF7_Game_private.res -O coff 
